package com.lanou3g.springcloud.zuul.client;

import com.lanou3g.springcloud.zuul.bean.CalcResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("calc-provider")
@Component
public interface CalcClient {
	@RequestMapping("/calc/{numA}/{numB}/{operator}")
	CalcResult calc(@PathVariable("numA") Integer numA,@PathVariable("numB") Integer numB,@PathVariable("operator") Integer operator);
}
